﻿#ifndef __BASE_SERVER_HEAD__
#define __BASE_SERVER_HEAD__

#include "asio/asio_server.h"

class CRpcForwarder;

class CBaseServer : public CAsioServer
{
public:
	explicit CBaseServer(uint16_t uSvrId, EServerType eServerType,
		CWorld& rWorld);
	~CBaseServer();

private:
	bool DoForwardRpcRequest(const CRpcCallContext& ctx,
		const std::string& sService, const std::string& sMethod,
		const std::string& sContent) const override;

private:
	std::unique_ptr<CRpcForwarder> m_pRpcForwarder;
};

#endif		// __BASE_SERVER_HEAD__
